package com.lanou3g.ptp.achievement.mapper;

import com.lanou3g.ptp.entity.Diary;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface DiaryMapper {

    List<Diary> findAll();
    List<Diary> findAll1();

    List<Diary> findByKeyword(String keyword);

    Diary findDiaryById(Long id);

    int insert(Diary diary);

    void updateDiary(@Param("id") Long id, @Param("diary") Diary diary);

    void deleteDiaryId(Long id);

    void deleteDiaryIds(Long[] ids);

    List<Diary> myFindAll(Long id);

    List<Diary> find(@Param("studentId") Long id,@Param("taskId")Long id1);

    Diary find1(@Param("studentId") Long id,@Param("taskId")Long id1,@Param("time1") Date time1,@Param("time2") Date time2);

    List<Diary> findDiarySituation(@Param("time1") Date time1,@Param("time2")Date time2,@Param("taskId") Long taskId);
}
